package com.icss.lesson3;

import java.io.*;

public class TestMain7 {
    public static void main(String[] args) {
        try (
                Writer w =
                        new OutputStreamWriter(
                                new FileOutputStream("d:/abc.txt", true)
                                , "utf-8");
                ){

            w.write("lkasjflkasjflka");
            w.flush();
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
